Digital image acquisition control and correction method and apparatus

ABSTRACT

An unsatisfactory scene is disqualified as an image acquisition control for a camera. An image is acquired. One or more mouth regions are determined. The mouth regions are analyzed to determined whether they are frowning, and if so, then the scene is disqualified as a candidate for a processed, permanent image while the mouth is completing the frowning.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No. 11/460,225, filed Jul. 26, 2006, now U.S. Pat. No. 7,804,983, which claims priority to U.S. provisional patent application No. 60/776,338, filed Feb. 24, 2006. This application is related to U.S. patent application Ser. No. 11/460,218, and 11/460,227, both filed on Jul. 26, 2006. Each of these applications is hereby incorporated by reference.

FIELD OF THE INVENTION

The invention relates to digital image acquisition, and particularly to disqualifying a scene as a candidate for a processed, permanent image due to the presence of one or more unsatisfactory features, such as blinking eyes, frowning faces, or occlusion or shadowing of facial features or other key features.

DESCRIPTION OF THE RELATED ART

Cameras are becoming strong computation tools. In particular, FotoNation, Inc., assignee of the present application, has developed many advantageous face detection tools. Some of these are described at U.S. patent application Ser. Nos. 10/608,776, 10/608,810, 10/764,339, 10/919,226, 11/182,718, and 11/027,001, which are hereby incorporated by reference.

This differs from using a trigger to take a picture. This also differs from waiting for an event that may or may not happen (e.g. a smile). U.S. Pat. No. 6,301,440 discloses adjusting image capture parameters based on analysis of temporary images, and awaiting taking a picture until everyone in the temporary images is smiling. The camera must await a certain event that may or may not ever happen. It is many times not acceptable to make people wait for the camera to decide that a scene is optimal before taking a picture, and there is no description in the '440 patent that would alleviate such dilemma. The '440 patent also provides no guidance as to how to detect or determine certain features within a scene.

There are also security cameras that take pictures when a subject enters the view of the camera. These generally detect motion or abrupt changes in what is generally a stagnant scene.

SUMMARY OF THE INVENTION

A method is provided for disqualifying an unsatisfactory scene as an image acquisition control for a camera. An analysis of the content of the captured image determines whether the image should be acquired or discarded. One example includes human faces. It may be determined whether an image is unsatisfactory based on whether the mouth is configured with a frown or the eyes are closed, partially closed or closing down or moving up during a blinking process. Alternatively, other non-desirable or unsatisfactory expressions or actions such as covering one's face with a hand or other occluding or shadowing of a facial feature or other key feature of a scene, or rotating the head away from the camera, etc., may be detected.

A present image of a scene is acquired or captured including a face region. One or more groups of pixels is/are identified corresponding to a region of interest such as a mouth region or an eye region within the face region. It is determined, e.g., whether the mouth region is in a frowning configuration. If so, then the scene is disqualified as a candidate for a processed, permanent image while the mouth is continuing to be frowning.

The present image may include a preview image, and the disqualifying may include delaying full resolution capture of an image of the scene. The delaying may include ending the disqualifying after a predetermined wait time.

A preview image may be used. This can provide an indication of a region of interest (ROI) where the eyes may be in the captured image. This provides a fast search in the final image of the mouth or eyes based on spatial information provided from the analysis of preview images.

The delaying may include predicting when the frowning will stop and ending the disqualifying at approximately the predicted frown stop time. The predetermined complete blinking process duration may be programmed based on an average frowning duration. The estimating may be based on analyzing a temporal capture parameter of one or more previous preview images relative to that of the present preview image. The estimating may involve a determination as to whether the mouth that is frowning is moving toward smiling or deeper frowning in the present preview image, and a degree to which the mouth is frowning.

The method may include determining whether the mouth is frowning including determining a degree to which the mouth is frowning. The degree to which the mouth is frowning may be determined based on relatively analyzing the present preview image and one or more other preview images relatively acquired within less than a duration of a frowning period. The determining whether the mouth is frowning may include determining a degree of blurriness of one or both lips. It may be determined what configuration the lips have or whether teeth are showing, or a combination thereof. A color analysis of the mouth region may be performed and differentiating pixels corresponding to an open versus closed mouth tone. A shape analysis of the mouth may be performed and a shape of the lips determined and/or pixels differentiated as corresponding to open versus closed mouth, teeth showing, etc.

The present image may include a full resolution capture image. The disqualifying may include foregoing further processing of the present image. It may be determined whether the mouth is frowning including determining a degree to which the mouth is frowning. This may include relatively analyzing the present preview image and one or more other preview images relatively acquired within less than a predetermined frowning duration wait time. The determination of whether the mouth is frowning or how long the mouth will be frowning may be based on determining a degree of blurriness of one or both lips and/or how the configuration of the lips has changed from a succeeding preview image.

The method may include determining a portion of one or more mouth features that may be showing. A color analysis may be performed and pixels differentiated as corresponding to frowning versus non-frowning features or tones. A shape analysis of the mouth may be performed and pixels differentiated as corresponding to a frown contrasted with other configurations.

The present image may include a full resolution capture image. The method may include assembling a combination image including pixels from the present image and open-eye pixels corresponding to the eye that is blinking from a different image. The different image may include a preview image or a post-view image or another full resolution image. The different image may include a lower resolution than the present image, and the assembling may include upsampling the different image or downsampling the present image, or a combination thereof. The method may also include aligning the present image and the different image, including matching a satisfactory mouth region to a frowning mouth region in the present image.

The invention may also be implemented to disqualify images out of a selection of images that are part of a stream, such as a video stream.

A mouth region may be identified based on identifying a face region, and analyzing the face region to determine the mouth region therein.

A new image may be captured due to the disqualifying to replace the present image.

A pair of images may be captured and analyzed to determine that at least one of the pair of images includes no blinking.

The interval between multiple captures can be calculated to be longer than a single blink time.

A warning signal may be provided regarding the frowning so that the photographer will be made aware that he or she should take another picture.

The invention in its various alternatives, may address single or multiple faces in a single image, such as a group shot. A second mouth region of a second face may be identified within the scene. Additional face regions or other key features that may be non-facial within a scene may be identified. It may be determined whether the second mouth region is in a frowning configuration, or another key feature is unsatisfactory in its configuration or position. If so, then the method may include disqualifying the scene as a candidate for a processed, permanent image while the second mouth is frowning. Capturing or further processing may be disqualified for full resolution images until the mouth regions of each face region within the scene include no frowning mouths.

A further method is provided for automatically disqualifying an unsatisfactory scene as an image acquisition control of a camera. The method includes acquiring multiple preview images. Information is extracted from the multiple preview images. One or more changes is/are analyzed in the scene between individual images of the multiple temporary images. Based on the analyzing, it is determined whether one or more unsatisfactory features exist within the scene. The scene is disqualified as a candidate for a processed, permanent image while the one or more unsatisfactory features continue to exist.

The analyzing may include identifying one or more groups of pixels that correspond to a facial feature having an unsatisfactory configuration. The one or more groups of pixels may include a mouth group, and the unsatisfactory configuration may include a frowning configuration. A disqualifying interval may be determined during which no processed, permanent image is to be acquired.

One or more processor readable storage devices having processor readable code embodied thereon are also provided. The processor readable code is for programming one or more processors to perform a method of disqualifying an unsatisfactory scene as an image acquisition control for a camera, as set forth herein above or below. The processor may be embedded as part of the camera or external to the acquisition device. The acquisition device may be a hand held camera, a stationary camera, a video camera, a mobile phone equipped with a acquisition device, a hand held device equipped with a acquisition device, a kiosk booth, such as ones used for portraits, a dedicated portrait camera such as one used for security or identifications or generically, any image capture device.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a method for disqualifying a scene that includes a frowning mouth in accordance with a preferred embodiment.

FIG. 2 illustrates a method of predicting a frowning time interval in accordance with a preferred embodiment.

FIG. 3 illustrates a method of determining a degree to which a mouth is frowning in accordance with a preferred embodiment.

FIG. 4 a illustrates a method of determining whether to forego further processing of an image in accordance with a preferred embodiment.

FIG. 4 b illustrates a method of assembling a combination image in accordance with a preferred embodiment.

FIG. 5 illustrates a preferred embodiment of a workflow of correcting images based on finding mouths in the images.

FIG. 6 a illustrates a generic workflow of utilizing mouth information in an image to delay image acquisition in accordance with a preferred embodiment.

FIG. 6 b illustrates a generic workflow of utilizing face information in a single or a plurality of images to adjust the image rendering parameters prior to outputting the image in accordance with a preferred embodiment.

FIGS. 7 a-7 d illustrate face, eye or mouth detection, or combinations thereof, in accordance with one or more preferred embodiments.

FIG. 8 a illustrates a frown detection and correction method in accordance with one or more preferred embodiments.

FIG. 8 b describes an illustrative system in accordance with a preferred embodiment to determine whether a mouth is blinking in the camera as part of the acquisition process, and whether to capture, discard or store the image, or whether to substitute a non-frowning mouth for a frowning mouth region.

FIG. 9 illustrate an automatic focusing capability in the camera as part of the acquisition process based on the detection of a mouth in accordance with one or more preferred embodiments.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Systems and methods are described in accordance with preferred and alternative embodiments. These techniques provide enhanced functionality and improved usability, as well as avoiding missed shots. With them, a digital camera is able to decide when a subject's facial expression may be inappropriate, unsatisfactory or non-desirable. One example is blinking, and others include frowning, occlusions and shadowing. The capture device can either not take the picture, delay the acquisition for an appropriate duration, or immediately take another picture, or warn a user, or take steps to enhance the unsatisfactory image later, or combinations of these or other steps. The camera may delay taking another picture for a certain amount of time such as 0.1 to 0.3 seconds or for an average frowning interval, or until the frowning is determined to be over. The user could be warned before snapping a picture or after the picture has been taken that the subject's mouth was frowning.

A predictive system is provided that disqualifies images if mouths are frowning, e.g., having lips turned downward at the edges of the mouth. The system predicts when a picture cannot be taken, i.e., those times when a detected frowning process will be ongoing.

Disqualified images may be already captured and disqualified only in a post-capture filtering operation, either within the camera or on an external apparatus. The system may take multiple images to enhance the probability that one or more of the images will not be disqualified for including one or more frowning mouths. Such system is useful in the case of a group shot where the probability of one subject in the process of blinking increases as the number of subjects increase. The system, based on the number of faces in the image, can automatically determine the amount of images to be sequentially taken to provide a probability that at least one of the images will have no blinking eyes that is above a threshold amount, e.g., 50%, 60%, 67%, 70%, 75%, 80%, 90% or 95%.

An image may be generated as a combination of a present image, and a preview, post-view or other full resolution image. For example, the combination image may include a face region and some background imagery, wherein a mouth region, which is unsatisfactorily frowning in the present image, is replaced with a mouth region that is not frowning from the preview, post-view or other full resolution image. This feature may be combined with features presented in U.S. patent application Ser. No. 10/608,776, which is assigned to the same assignee as the present application and is hereby incorporated by reference. In the '776 application, a method of digital image processing using face detection is described. A group of pixels is identified that corresponds to a face within a digital image. A second group of pixels is identified that corresponds to another feature within the digital image. A re-compositioned image is determined including a new group of pixels for at least one of the face and the other feature.

The embodiments herein generally refer to a single face within a digital image or scene (e.g., prior to image capture or that may have already been digitally captured), and generally to “a mouth”. However, these descriptions can be extended to other features on a single face, and to more than a single face (group shot), and the camera can disqualify the scene if a certain number of one or two, three, four or more mouths are determined to be frowning, e.g., in a group shot including 20 people, it may be permissible to have one or two frowning mouths such that a threshold of three frowning mouths is set before the scene will be disqualified. The camera is able to perform the disqualifying and/or other operations, as described herein or otherwise, until a high percentage or all of the subjects have non-frowning mouths.

In one embodiment, the camera will take the picture right after the subject stops frowning. The present system can be used to disqualify an image having a subject whose mouth or lips are in a frowning configuration, and can take multiple images to prevent having no images that lack frowns. One of the images will likely have non-frowning mouths for each subject person, and the pictures can have a mixture of pixels combined into a single image with no mouths frowning. The camera may decide on the number of images to take based on the number of subjects in the image. The more people, the higher the likelihood of one person frowning or blinking, thus more images should be acquired. If it is acceptable for efficiency that a certain percentage of persons may be frowning or blinking in a large group shot, e.g., that is below a certain amount, e.g., 5%, then the number of images can be reduced. These threshold numbers and percentage tolerances can be selected by a camera product manufacturer, program developer, or user of a digital image acquisition apparatus. This information may be generated based on analysis of preview images. The preview image may also assist in determining the location of the eyes, so that the post processing analysis can be faster honing into the region of interest as determined by the preview analysis.

The present system sets a condition under which a picture will not be taken or will not be used or further processed after it has already been taken, and/or where an additional image or images will be taken to replace the unsatisfactory image. Thus, another advantageous feature of a system in accordance with a preferred embodiment is that it can correct an acquired frown region with a user's mouth information from a preview or post-view image or another full resolution image. The present system preferably uses preview images, which generally have lower resolution and may be processed more quickly. The present system can also look for changes in facial features (e.g., of the eyes or mouth), between images as potentially triggering a disqualifying of a scene for an image capture.

The description herein generally refers to handling a scene wherein an object person is frowning. However, the invention may be applied to other features, e.g., when a person is blinking, or when a person is unsatisfactorily gesturing, talking, eating, having bad hair, or otherwise disposed, or when another person is putting bunny ears on someone, or an animal or other person unexpectedly crosses between the camera and human subject, or the light changes unexpectedly, or the wind blows, or otherwise. One or more or all of these disqualifying circumstances may be manually set and/or overridden.

FIG. 1 illustrates a method for disqualifying a scene that includes a frowning mouth in accordance with a preferred embodiment. A present image of a scene including a face region is acquired at 110. Optionally, the face region is identified at 120, and the face region analyzed to determine a mouth region therein. One or more groups of pixels corresponding to a mouth region within the face region are identified at 130. It is determined whether the mouth region is in a frown configuration at 140. If the mouth is determined to be frowning at 140, then the scene is disqualified as a candidate for a processed, permanent image at 150. At this point, the process can simply stop or start again from the beginning, or a new image may be captured due to the disqualifying in order to replace the present image at 160. A warning signal may be provided regarding the frowning at 170. Full resolution capture of an image of the scene may be delayed at 180. As illustrated at FIGS. 4A and 4B, further processing of a present image may be stopped or a combination image may be assembled as a way of enhancing the disqualified image.

FIG. 2 illustrates a method of predicting when the frowning will end in accordance with a preferred embodiment. It is predicted when the frowning will end at 210, and the disqualifying interval will end at the predicted frowning stop time. The interval may be set at a predetermined wait time 220. This may be set from a knowledge of an average frown duration of a second, or two seconds, or half a second, or so, or in a range from approximately 0.2 to 2.0 seconds, or to 0.5, 0.8, 1.0, 1.2 or 1.5 seconds, however setting the wait time too long to ensure the frowning is complete disadvantageously permits a second frown to begin or simply makes everyone involved in taking the picture have to wait to too long for the disqualifying period to end. A more precise determination of the end of the frowning is desired.

A degree to which a mouth may be frowning is provided at 230. The process of FIG. 3 may follow. It may be determined at 270 whether the frowning mouth is moving, and if so, in what direction. A frowning stop time may be estimated at 280 based on analyzing a temporal capture parameter of one or more preview images relative to that of the present image.

A degree to which a mouth may be frowning is further provided at 310 of FIG. 3. Shape analysis 360 may be preferably performed to differentiate pixels corresponding to features of the upper or lower lips, or both, that are frowning from pixels corresponding to features of upper or lower lips turned downward, or both, features corresponding to mouths that are not frowning such as teeth, dimples, wrinkles, creases, gums, or tongue showing, or lips not turned downward at the edges, that would appear in a mouth region of a present scene. The present image is preferably analyzed at 330 relative to one or more other preview images acquired within less than a duration of a frowning period. A portion of a mouth feature that is showing may be determined at 340 to facilitate determining to what degree the mouth may be frowning. An optional determination of a degree of blurriness at 350 of one or both lips may facilitate a determination of lips speed for determining when the frowning may end. Color analysis 360 may also be performed to differentiate pixels corresponding to features of non-frowning mouths such as teeth, dimples, wrinkles, creases, gums, or tongue, from pixels corresponding to features of frowning mouths or lips that would appear in a mouth region of a present scene.

FIG. 4 a illustrates a method of determining whether to forego further processing of an image 410 in accordance with a preferred embodiment. In this case, determining a degree to which the mouth is frowning 420 is performed for a different purpose than to compute a frowning stop time. In this embodiment, a threshold degree of frowning of a mouth may be preset, e.g., such that when an image is analyzed according to 420, 430, 440, 450, 460, or 470, or combinations thereof, similar to any or a combination of 310-360 of FIG. 3, then if the mouth is frowning to at least the threshold degree or greater, then the scene is disqualified, because the mouth is frowning too much or is substantially frowning. This can correspond to a situation wherein a mouth is not frowning, or where a mouth is at the very start or very end of a frowning movement, such that the degree to which the mouth is not frowning is sufficient for keeping the image.

FIG. 4 b illustrates a method of assembling a combination image in accordance with a preferred embodiment. At 480, a combination image is assembled including pixels from a present image and non-frowning mouth pixels from a different image that correspond to the mouth that is frowning in the present image. The different image may be a preview or postview image 490. In this case, particularly if the preview or postview image has lower resolution than the present image, then at 500 the preview image may be upsampled or the postview image may be downsampled, or a combination thereof. The present image and the different image are preferably aligned at 510 to match the non-frowning mouth pixel region in the preview of postview image to the frowning mouth region in the present image.

FIG. 5 illustrates further embodiments. If one or more mouths are determined to be frowning in an image, then that image is preferably disqualified from being further processed in accordance with the following. Alternatively, the frowning determination 140 may be performed somewhere along the way, such as illustrated as an example in FIG. 5. An image may be opened by the application in block 1102. The software then determines whether mouths or faces, or both, are in the picture as described in block 1106. If no mouths or faces are detected, the software ceases to operate on the image and exits 1110. In what follows, only mouths will be generally referred to for efficiency, but either faces or mouths, or eyes, or combinations thereof, or even another facial feature or other non-facial predetermined scene feature, may be the object of particular operations (see FIGS. 1, 110, 120 and 130 and U.S. application Ser. No. 10/608,776, which is incorporated by reference).

The software may also offer a manual mode, where the user, in block 1116 may inform the software of the existence of mouths, and manually marks them in block 1118. The manual selection may be activated automatically if no mouths are found, 1116, or it may even be optionally activated after the automatic stage to let the user, via some user interface to either add more mouths to the automatic selection 1112 or even 1114, remove regions that are mistakenly 1110 identified by the automatic process 1118 as mouths. Additionally, the user may manually select an option that invokes the process as defined in 1106. This option is useful for cases where the user may manually decide that the image can be enhanced or corrected based on the detection of the mouths. Various ways that the mouths may be marked, whether automatically of manually, whether in the camera or by the applications, and whether the command to seek the mouths in the image is done manually or automatically, are all included in preferred embodiments herein. In a preferred embodiment, faces are first detected, and then mouth is detected within each face.

In an alternative embodiment, the mouth detection software may be activated inside the camera as part of the acquisition process, as described in Block 1104. In this scenario, the mouth detection portion 1106 may be implemented differently to support real time or near real time operation. Such implementation may include sub-sampling of the image, and weighted sampling to reduce the number of pixels on which the computations are performed. This embodiment is further described with reference to FIG. 6 a.

In an alternative embodiment, the eye detection can then also make use of information provided from preview images to determine the location of the eyes in preview, thus expediting the analysis being performed in a smaller region on the final image.

In an alternative embodiment, the mouth detection software may be activated inside the rendering device as part of the output process, as described in Block 1103. In this scenario, the mouth detection portion 1106 may be implemented either within the rendering device, using the captured image or using a single or plurality of preview images, or within an external driver to such device. This embodiment is further described with reference to FIG. 6 b.

After the mouths and/or faces or other features are tagged, or marked, whether manually as defined in 1118, or automatically 1106, the software is ready to operate on the image based on the information generated by the mouth-detection, face detection, or other feature-detection stage. The tools can be implemented as part of the acquisition, as part of the post-processing, or both. As previously averred to, frown determination may be performed at this point at 140 (see FIGS. 1-4 b and above). The image may be disqualified at 1119 if frowning is found, such that processing further processing, as known to one familiar in the art of digital photography is efficiently foregone.

Block 1120 describes panning and zooming into the mouths or faces. This tool can be part of the acquisition process to help track the mouths or faces or other features and create a pleasant composition, or as a post processing stage for either cropping an image or creating a slide show with the image, which includes movement.

Block 1130 depicts the automatic orientation of the image, a tool that can be implemented either in the camera as part of the acquisition post processing, or on a host software.

Block 1140 describes the way to color-correct the image based on the skin tones of the faces or mouth tones or other feature tones. This tool can be part of the automatic color transformations that occur in the camera when converting the image from the RAW sensor data form onto a known, e.g. RGB representation, or later in the host, as part of an image enhancement software. The various image enhancement operations may be global, affecting the entire image, such as rotation, and/or may be selective based on local criteria. For example, in a selective color or exposure correction as defined in block 1140, a preferred embodiment includes corrections done to the entire image, or only to the face or mouth regions in a spatially masked operation, or to specific exposure, which is a luminance masked operation. Note also that such masks may include varying strength, which correlates to varying degrees of applying a correction. This allows a local enhancement to better blend into the image.

Block 1150 describes the proposed composition such as cropping and zooming of an image to create a more pleasing composition. This tool 1150 is different from the one described in block 1120 where the mouths or faces are anchors for either tracking the subject or providing camera movement based on the face location.

Block 1160 describes the digital-fill-flash simulation which can be done in the camera or as a post processing stage. Alternatively to the digital fill flash, this tool may also be an actual flash sensor to determine if a fill flash is needed in the overall exposure as described in Block 1170. In this case, after determining the overall exposure of the image, if the detected faces in the image are in the shadow, a fill flash will automatically be used. Note that the exact power of the fill flash, which should not necessarily be the maximum power of the flash, may be calculated based on the exposure difference between the overall image and the faces. Such calculation is well known to the one skilled in the art and is based on a tradeoff between aperture, exposure time, gain and flash power.

Block 1180 describes the ability of the camera to focus on the mouths or faces or other features. This can be used as a pre-acquisition focusing tool in the camera.

Referring to FIG. 6 a, which describes a process of using face detection to improve in camera acquisition parameters, as aforementioned in FIG. 5, block 1106. In this scenario, a camera is activated at 1000, for example by means of half pressing the shutter, turning on the camera, etc. The camera then goes through the normal pre-acquisition stage to determine at 1004 the correct acquisition parameters such as aperture, shutter speed, flash power, gain, color balance, white point, or focus. In addition, a default set of image attributes, particularly related to potential faces in the image, are loaded at 1002. Such attributes can be the overall color balance, exposure, contrast, orientation etc. Alternatively, at 1003, a collection of preview images may be analyzed to determine the potential existence of faces in the picture at 1006. A region wherein potentially the eyes or mouth will be when the full resolution is captured may also be predicted at 1008. This alternative technique may include moving on to block 1010 and/or 1002.

An image is then digitally captured onto the sensor at 1010. Such action may be continuously updated, and may or may not include saving such captured image into permanent storage.

An image-detection process, preferably a face detection process, as known to one familiar in the art of image classification and face detection in particular, is applied to the captured image to seek eyes, mouths or faces or other features in the image at 1020. Such face detection techniques, include, but are not limited to: knowledge-based; feature-invariant; template-matching; appearance-based; color or motion cues; adaboost-based face detector, Viola-Jones, etc.

If no images are found, the process terminates at 1032. Alternatively, or in addition to the automatic detection of 1030, the user can manually select, 1034 detected mouths or faces, using some interactive user interface mechanism, by utilizing, for example, a camera display. Alternatively, the process can be implemented without a visual user interface by changing the sensitivity or threshold of the detection process. Alternatively, this data may be available form a pre-capture process 1003.

When mouths or faces are detected, 1040, they are marked, and labeled. Detecting defined in 1040 may be more than a binary process of selecting whether a mouth or a face is detected or not, it may also be designed as part of a process where each of the mouths or faces is given a weight based on size of the mouths or faces, location within the frame, other parameters described herein, which define the importance of the mouth or face in relation to other mouths or faces detected.

Alternatively, or in addition, the user can manually deselect regions 1044 that were wrongly false detected as mouths or faces. Such selection can be due to the fact that a mouth or a face was false detected or when the photographer may wish to concentrate on one of the mouths or faces as the main subject matter and not on other mouths or faces. Alternatively, 1046 the user may re-select, or emphasize one or more mouths or faces to indicate that these mouths or faces have a higher importance in the calculation relative to other mouths or faces. This process as defined in 1046 further defines the preferred identification process to be a continuous value one as opposed to a binary one. The process can be done utilizing a visual user interface or by adjusting the sensitivity of the detection process.

After the mouths or faces or other features are correctly isolated at 1040 their attributes are compared at 1050 to default values that were predefined in 1002. Such comparison will determine a potential transformation between the two images, in order to reach the same values. The transformation is then translated to the camera capture parameters 1070 and the image is acquired 1090.

A practical example is that if the captured face is too dark, the acquisition parameters may change to allow a longer exposure, or open the aperture. Note that the image attributes are not necessarily only related to the face regions but can also be in relations to the overall exposure. As an exemplification, if the overall exposure is correct but the faces are underexposed, the camera may shift into a fill-flash mode.

At 1060, capture is delayed until detected image attributes match default image attributes. An example in accordance with a preferred embodiment is to delay capture until mouths that are frowning and causing the delay are no longer frowning. At 1070, manual override instructions may be entered to take the picture anyway, or to keep a picture or to continue processing of a picture, even though frowning is detected within the picture. The picture is taken at 1090, or in accordance with another embodiment, the picture is stored in full resolution.

Referring to FIG. 6 b, a process is described for using mouth, face or other feature detection to improve output or rendering parameters, as aforementioned in FIG. 5, block 1103. In this scenario, a rendering device such as a printer or a display, hereinafter referred to as “the device” is activated at 2100. Such activation can be performed for example within a printer, or alternatively within a device connected to the printer such as a PC or a camera. The device then goes through a normal pre-rendering stage to determine at 2104, the correct rendering parameters such as tone reproduction, color transformation profiles, gain, color balance, white point and resolution. In addition, a default set of image attributes, particularly related to potential mouths or faces in the image, are loaded at 2102. Such attributes can be the overall color balance, exposure, contrast, or orientation, or combinations thereof.

An image is then digitally downloaded onto the device 2110. An image-detection process, preferably a mouth or a face detection process, is applied to the downloaded image to seek mouths or faces in the image at 2120. If no images are found, the process terminates at 2132 and the device resumes its normal rendering process. Alternatively, or in addition to the automatic detection of 2130, the user can manually select 2134 detected mouths or faces or other features, using some interactive user interface mechanism, by utilizing, for example, a display on the device. Alternatively, the process can be implemented without a visual user interface by changing the sensitivity or threshold of the detection process.

When mouths or faces are detected at 2130, they are marked at 2140, and labeled. Detecting in 2130 may be more than a binary process of selecting whether a mouth or a face is detected or not. It may also be designed as part of a process where each of the mouths or faces is given a weight based on size of the faces, location within the frame, other parameters described herein, etc., which define the importance of the mouth or face in relation to other mouths or faces detected.

Alternatively, or in addition, the user can manually deselect regions at 2144 that were wrongly false detected as mouths or faces. Such selection can be due to the fact that a mouth or face was false detected or when the photographer may wish to concentrate on a mouth or a faces as the main subject matter and not on other mouths or faces. Alternatively, 2146, the user may re-select, or emphasize one or more mouths or faces to indicate that these mouths or faces have a higher importance in the calculation relative to other mouths or faces. This process as defined in 1146, further defines the preferred identification process to be a continuous value one as opposed to a binary one. The process can be done utilizing a visual user interface or by adjusting the sensitivity of the detection process.

After the mouths or faces or other scene or image features are correctly isolated at 2140, their attributes are compared at 2150 to default values that were predefined in 2102. At least one preferred attribute that the process is looking for is frowning mouths.

Such comparison will determine a potential transformation between the two images, in order to reach the same values. The image may be disqualified at 2160 if one or more mouths are determined to be frowning. The disqualifying may be overridden manually at 2170 or open mouth pixels may be substituted from a different image. The transformation may be translated to the device rendering parameters, and the image at 2190 may be rendered. The process may include a plurality of images. In this case at 2180, the process repeats itself for each image prior to performing the rendering process. A practical example is the creation of a thumbnail or contact sheet which is a collection of low resolution images, on a single display instance.

A practical example is that if the mouth or face were too darkly captured, the rendering parameters may change the tone reproduction curve to lighten the mouth or face. Note that the image attributes are not necessarily only related to the mouth or face regions, but can also be in relation to an overall tone reproduction.

Referring to FIGS. 7 a-7 d, which describe automatic rotation of an image based on the location and orientation of mouths, eyes, faces, other face features, or other non-facial features, as highlighted in FIG. 5 at Block 1130. An image of two faces is provided in FIG. 7 a. Note that the faces may not be identically oriented, and that the faces may be occluding. In this case, both eyes are showing on each face, but only one eye might be showing. Also, both mouths are showing, but one or both could be missing in other scenes.

The software in the mouth or face detection stage, including the functionality of FIG. 5, blocks 1108 and 1118, will mark the two faces or the two mouths or four eyes of the mother and son, e.g., the faces may be marked as estimations of ellipses 2100 and 2200, respectively. Using known mathematical means, such as the covariance matrices of the ellipses, the software will determine the main axes of the two faces 2120 and 2220, respectively as well as the secondary axis 2140 and 2240. Even at this stage, by merely comparing the sizes of the axes, the software may assume that the image is oriented 90 degrees, in the case that the camera is in landscape mode, which is horizontal, or in portrait mode which is vertical or +90 degrees, aka clockwise, or −90 degrees aka counter clockwise. Alternatively, the application may also be utilized for any arbitrary rotation value. However, this information may not suffice to decide whether the image is rotated clockwise or counter-clockwise.

FIG. 7 c describes the step of extracting the pertinent features of a face, which are usually highly detectable. Such objects may include the eyes, 2140, 2160 and 2240, 2260, and the lips, 2180 and 2280, or the nose, eye brows, eye lids, features of the eyes, hair, forehead, chin, ears, etc. The combination of the two eyes and the center of the lips creates a triangle 2300 which can be detected not only to determine the orientation of the face but also the rotation of the face relative to a facial shot. Note that there are other highly detectable portions of the image which can be labeled and used for orientation detection, such as the nostrils, the eyebrows, the hair line, nose-bridge and the neck as the physical extension of the face, etc. In this figure, the eyes and lips are provided as an example of such facial features Based on the location of the eyes, if found, and the mouth, the image might ought to be rotated in a counter clockwise direction.

Note that it may not be enough to just locate the different facial features, but such features may be compared to each other. For example, the color of the eyes may be compared to ensure that the pair of eyes originated from the same person. Alternatively, the features of the face may be compared with preview images. Such usage may prevent a case where a double upper eyelid may be mistaken to a semi closed eye. Another example is that in FIGS. 7 c and 7 d, if the software combined the mouth of 2180 with the eyes of 2260, 2240, the orientation would have been determined as clockwise. In this case, the software detects the correct orientation by comparing the relative size of the mouth and the eyes. The above method describes exemplary and illustrative techniques for determining the orientation of the image based on the relative location of the different facial objects. For example, it may be desired that the two eyes should be horizontally situated, the nose line perpendicular to the eyes, the mouth under the nose etc. Alternatively, orientation may be determined based on the geometry of the facial components themselves. For example, it may be desired that the eyes are elongated horizontally, which means that when fitting an ellipse on the eye, such as described in blocs 2140 and 2160, it may be desired that the main axis should be horizontal. Similar with the lips which when fitted to an ellipse the main axis should be horizontal. Alternatively, the region around the face may also be considered. In particular, the neck and shoulders which are the only contiguous skin tone connected to the head can be an indication of the orientation and detection of the face.

The process for determining the orientation of images can be implemented in a preferred embodiment as part of a digital display device. Alternatively, this process can be implemented as part of a digital printing device, or within a digital acquisition device.

The process can also be implemented as part of a display of multiple images on the same page or screen such as in the display of a contact-sheet or a thumbnail view of images. In this case, the user may approve or reject the proposed orientation of the images individually or by selecting multiple images at once. In the case of a sequence of images, the orientation of images may be determined based on the information as approved by the user regarding previous images.

Alternatively, as described by the flow chart of FIG. 8 a, a similar method may be utilized in the pre-acquisition stage, to determine if digital simulation or re-compositioning of an image with non-frowning mouths may be advantageous or not, e.g., when a mouth is determined to be frowning. U.S. Pat. No. 6,151,073 to Steinberg et al. is hereby incorporated by reference. In block 1108 of FIG. 5, the camera searched for the existence of mouths, eyes or faces in the image. At 1460, it is determined whether one or more mouths were found in the image. If not, then exit at 1462. If so, then the mouths are marked at 1464. The mouth regions are analyzed at 1470. If the mouths are determined to be sufficiently configured as non-frowning at 1474, then the image is left as is at 1478. However, if the mouths are determined to be unsatisfactorily frowning, or the lips are turned downward at the edges beyond a threshold amount, or not turned upwards sufficiently, then the process can proceed to correction at 1480, 1490 and/or 1494. At 1480, a sub-routine for digitally simulating non-frowning mouths is provided. A mask or masks define selected regions, i.e., in this example, eye regions. The exposure may be increased at 1484 or that may be skipped. Shape and/or color processing is performed at 1486 to the selected mouth regions. For example, where frowning lips exist in the original image, non-frowning lips are provided to be substituted over the frowning lips. Tone reproduction is provided at 1488.

At 1490, single or multiple results may be provided to a user. The user may select a preferred result at 1492, and the correction is applied at 1498. Alternatively, the image may be displayed at 1494 to the user with a parameter to be modified such as lips configuration. The user then adjusts the extent of the modification at 1496, and the image is corrected at 1498.

FIG. 8 b provides another workflow wherein picture taking mode is initiated at 1104 as in FIG. 5. The image is analyzed at 4820. A determination of whether mouths were found in the image is made at 1106. If not, then exit at 1110. If so, then the mouths are marked at 1108. The mouth regions are analyzed at 4840, and if the mouths are open 4960, then the picture is either taken, stored (e.g., if the picture was previously taken) or taken and stored at 4880. If the mouths are determined to be frowning at 4860, e.g., because the person appears to be unhappy, then the image may be discarded or image capture delayed at 4980, or alternatively the picture may be taken at 4900. In this latter embodiment, a non-frowning mouth region is substituted for pixels of the frowning mouth at 4920, and the combination picture is stored at 4940.

FIG. 9 illustrates a technique involving motion of lips. A focusing mechanism is activated at 1170. The camera seeks the mouth and/or lips at 1750. If a mouth is not detected at 1760, then spatial based auto focusing techniques may be performed at 1762. If a mouth is detected, then regions are marked at 1770. The regions are displayed at 1772. The user may take the picture now at 1790. However, the user may move to focus tracking mode at 1780. While the lips are moving, e.g., in the process of frowning or ending a frown 1782, the lip movement is tracked at 1784. A delay or scene disqualification is imposed while the lips are moving during the frowning process at 1786. When the disqualifying period ends, the user may take the picture, or the camera may be programmed to automatically take the shot at 1790.

What follows is a cite list of references which are, in addition to that which is described as background, the invention summary, the abstract, the brief description of the drawings and the drawings, and other references cited above, hereby incorporated by reference into the detailed description of the preferred embodiments as disclosing alternative embodiments:

-   U.S. Pat. Nos. 6,965,684, 6,301,440, RE33682, RE31370, 4,047,187,     4,317,991, 4,367,027, 4,638,364, 5,291,234, 5,488,429, 5,638,136,     5,710,833, 5,724,456, 5,781,650, 5,812,193, 5,818,975, 5,835,616,     5,870,138, 5,978,519, 5,991,456, 6,097,470, 6,101,271, 6,128,397,     6,148,092, 6,151,073, 6,188,777, 6,192,149, 6,249,315, 6,263,113,     6,268,939, 6,282,317, 6,301,370, 6,332,033, 6,393,148, 6,404,900,     6,407,777, 6,421,468, 6,438,264, 6,456,732, 6,459,436, 6,473,199,     6,501,857, 6,504,942, 6,504,951, 6,516,154, and 6,526,161; -   United States published patent applications no. 2003/0071908,     2003/0052991, 2003/0025812, 2002/0172419, 2002/0114535,     2002/0105662, and 2001/0031142; -   U.S. provisional application No. 60/776,338, entitled Human Eye     Detector; -   Japanese patent application no. JP5260360A2; -   British patent application no. GB0031423.7; -   Yang et al., IEEE Transactions on Pattern Analysis and Machine     Intelligence, Vol. 24, no. 1, pp 34-58 (January 2002); and -   Baluja & Rowley, “Neural Network-Based Face Detection,” IEEE     Transactions on Pattern Analysis and Machine Intelligence, Vol. 20,     No. 1, pages 23-28, January 1998.

While an exemplary drawings and specific embodiments of the present invention have been described and illustrated, it is to be understood that that the scope of the present invention is not to be limited to the particular embodiments discussed. Thus, the embodiments shall be regarded as illustrative rather than restrictive, and it should be understood that variations may be made in those embodiments by workers skilled in the arts without departing from the scope of the present invention as set forth in the claims that follow and their structural and functional equivalents.

In addition, in methods that may be performed according to the claims below and/or preferred embodiments herein, the operations have been described in selected typographical sequences. However, the sequences have been selected and so ordered for typographical convenience and are not intended to imply any particular order for performing the operations, unless a particular ordering is expressly provided or understood by those skilled in the art as being necessary. 

1. A method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, the method comprising: acquiring a present image of a scene including a face or partial face including at least one eye; detecting the face, partial face or eye, or combinations thereof; determining that the eye is currently in a blinking process; rejecting the present image as a candidate for post-acquisition digital image processing due to the blinking; performing temporal analysis of movement of the eye lid; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said blinking process to end based on said temporal analysis of movement.
 2. The method of claim 1, wherein the present image comprises a relatively low resolution reference/preview image.
 3. The method of claim 1, wherein the temporal analysis comprises determining a speed at which the eye lid is closing or opening the eye.
 4. The method of claim 1, wherein the temporal analysis comprises determining a speed of the eye lid for determining when the blinking process will end.
 5. The method of claim 1, wherein the temporal analysis comprises a speed and a direction of the movement of the eye lid.
 6. The method of claim 1, further comprising determining an extent to which the eye ball of the eye is showing.
 7. The method of claim 6, further comprising determining whether the eye ball is currently being covered or uncovered.
 8. The method of claim 1, wherein the determining temporal analysis of movement comprises determining a direction of movement of the eye lid.
 9. The method of claim 1, wherein the performing temporal analysis comprises determining a degree of blurriness of the eye lid due to movement.
 10. A method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, the method comprising: acquiring a present image of a scene including a face or partial face including at least one mouth; detecting the face, partial face or mouth, or combinations thereof; determining that the mouth is currently frowning; rejecting the present image as a candidate for post-acquisition digital image processing due to the frowning; performing temporal analysis of movement of one or both lips; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said frowning to end based on said temporal analysis of movement of said one or both lips.
 11. The method of claim 10, wherein the present image comprises a relatively low resolution reference/preview image.
 12. The method of claim 10, wherein the temporal analysis comprises determining a speed at which a shape of said one or both lips is changing.
 13. The method of claim 10, wherein the temporal analysis comprises determining a speed of said one or both lips for determining when the frowning will end.
 14. The method of claim 10, wherein the temporal analysis comprises a speed and a direction of the movement of said one or both lips at the edges.
 15. The method of claim 14, further comprising determining whether the edges of the one or both lips are currently moving downward or upward.
 16. The method of claim 10, further comprising determining an extent to which the dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is showing.
 17. The method of claim 16, further comprising determining whether said dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is currently being covered or uncovered.
 18. The method of claim 10, wherein the determining temporal analysis of movement comprises determining a direction of movement of the edges of one or both lips.
 19. The method of claim 10 wherein the performing temporal analysis comprises determining a degree of blurriness of the edges of the one or both lips due to movement.
 20. One or more non-transitory processor-readable media having code embedded therein for programming a processor to perform a method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, the method comprising: acquiring a present image of a scene including a face or partial face including at least one eye; detecting the face, partial face or eye, or combinations thereof; determining that the eye is currently in a blinking process; rejecting the present image as a candidate for post-acquisition digital image processing due to the blinking; performing temporal analysis of movement of the eye lid; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said blinking process to end based on said temporal analysis of movement.
 21. The one or more non-transitory processor-readable media of claim 20, wherein the present image comprises a relatively low resolution reference/preview image.
 22. The one or more non-transitory processor-readable media of claim 20, wherein the temporal analysis comprises determining a speed at which the eye lid is closing or opening the eye.
 23. The one or more non-transitory processor-readable media of claim 20, wherein the temporal analysis comprises determining a speed of the eye lid for determining when the blinking process will end.
 24. The one or more non-transitory processor-readable media of claim 20, wherein the temporal analysis comprises a speed and a direction of the movement of the eye lid.
 25. The one or more non-transitory processor-readable media of claim 20, the method further comprising determining an extent to which the eye ball of the eye is showing.
 26. The one or more non-transitory processor-readable media of claim 25, the method further comprising determining whether the eye ball is currently being covered or uncovered.
 27. The one or more non-transitory processor-readable media of claim 20, wherein the determining temporal analysis of movement comprises determining a direction of movement of the eye lid.
 28. The one or more non-transitory processor-readable media of claim 20, wherein the performing temporal analysis comprises determining a degree of blurriness of the eye lid due to movement.
 29. One or more non-transitory processor-readable media having code embedded therein for programming a processor to perform a method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, the method comprising: acquiring a present image of a scene including a face or partial face including at least one mouth; detecting the face, partial face or mouth, or combinations thereof; determining that the mouth is currently frowning; rejecting the present image as a candidate for post-acquisition digital image processing due to the frowning; performing temporal analysis of movement of one or both lips; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said frowning to end based on said temporal analysis of movement of said one or both lips.
 30. The one or more non-transitory processor-readable media of claim 29, wherein the present image comprises a relatively low resolution reference/preview image.
 31. The one or more non-transitory processor-readable media of claim 29, wherein the temporal analysis comprises determining a speed at which a shape of said one or both lips is changing.
 32. The one or more non-transitory processor-readable media of claim 29, wherein the temporal analysis comprises determining a speed of said one or both lips for determining when the frowning will end.
 33. The one or more non-transitory processor-readable media of claim 29, wherein the temporal analysis comprises a speed and a direction of the movement of said one or both lips at the edges.
 34. The one or more non-transitory processor-readable media of claim 33, the method further comprising determining whether the edges of the one or both lips are currently moving downward or upward.
 35. The one or more non-transitory processor-readable media of claim 29, the method further comprising determining an extent to which the dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is showing.
 36. The one or more non-transitory processor-readable media of claim 35, the method further comprising determining whether said dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is currently being covered or uncovered.
 37. The one or more non-transitory processor-readable media of claim 29, wherein the determining temporal analysis of movement comprises determining a direction of movement of the edges of one or both lips.
 38. The one or more non-transitory processor-readable media of claim 29 wherein the performing temporal analysis comprises determining a degree of blurriness of the edges of the one or both lips due to movement.
 39. A digital image acquisition device, comprising: a lens and image sensor for acquiring digital images; a processor; and one or more processor-readable media having code embedded therein for programming the processor to perform a method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, wherein the method comprises: acquiring a present image of a scene including a face or partial face including at least one eye; detecting the face, partial face or eye, or combinations thereof; determining that the eye is currently in a blinking process; rejecting the present image as a candidate for post-acquisition digital image processing due to the blinking; performing temporal analysis of movement of the eye lid; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said blinking process to end based on said temporal analysis of movement.
 40. The device of claim 39, wherein the present image comprises a relatively low resolution reference/preview image.
 41. The device of claim 39, wherein the temporal analysis comprises determining a speed at which the eye lid is closing or opening the eye.
 42. The device of claim 39, wherein the temporal analysis comprises determining a speed of the eye lid for determining when the blinking process will end.
 43. The device of claim 39, wherein the temporal analysis comprises a speed and a direction of the movement of the eye lid.
 44. The device of claim 39, the method further comprising determining an extent to which the eye ball of the eye is showing.
 45. The device of claim 44, the method further comprising determining whether the eye ball is currently being covered or uncovered.
 46. The device of claim 39, wherein the determining temporal analysis of movement comprises determining a direction of movement of the eye lid.
 47. The device of claim 39, wherein the performing temporal analysis comprises determining a degree of blurriness of the eye lid due to movement.
 48. A digital image acquisition device, comprising: a lens and image sensor for acquiring digital images; a processor; and one or more processor-readable media having code embedded therein for programming the processor to perform a method of selectively disqualifying a scene as a candidate for permanent capture, storage or processing, or combinations thereof, wherein the method comprises: acquiring a present image of a scene including a face or partial face including at least one mouth; detecting the face, partial face or mouth, or combinations thereof; determining that the mouth is currently frowning; rejecting the present image as a candidate for post-acquisition digital image processing due to the frowning; performing temporal analysis of movement of one or both lips; and automatically acquiring a new image to replace the present image after delaying for a period of time, wherein the delaying of said acquiring the new image corresponds to an estimated time for said frowning to end based on said temporal analysis of movement of said one or both lips.
 49. The device of claim 48, wherein the present image comprises a relatively low resolution reference/preview image.
 50. The device of claim 48, wherein the temporal analysis comprises determining a speed at which a shape of said one or both lips is changing.
 51. The device of claim 48, wherein the temporal analysis comprises determining a speed of said one or both lips for determining when the frowning will end.
 52. The device of claim 48, wherein the temporal analysis comprises a speed and a direction of the movement of said one or both lips at the edges.
 53. The device of claim 52, the method further comprising determining whether the edges of the one or both lips are currently moving downward or upward.
 54. The device of claim 48, the method further comprising determining an extent to which the dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is showing.
 55. The device of claim 54, the method further comprising determining whether said dimple, crease, tongue, one or more teeth, or gums, or combinations thereof, is currently being covered or uncovered.
 56. The device of claim 48, wherein the determining temporal analysis of movement comprises determining a direction of movement of the edges of one or both lips.
 57. The device of claim 48, wherein the performing temporal analysis comprises determining a degree of blurriness of the edges of the one or both lips due to movement. 